import authority from '@/pages/authority/menu';
import scale from '@/pages/scale/menu';
import individual from '@/pages/individual/menu';
import psychology from '@/pages/psychology/menu';
import hospital from '@/pages/hospital/menu';
import mall from '@/pages/mall/menu';
import pc from '@/pages/pc/menu';

export interface MenuItem {
  path: string;
  label: string;
  children?: Array<MenuItem>;
}

export const headerMenu = [
  { path: '/', label: '首页' },
  { path: '/authority', label: '人资系统' },
  { path: '/individual', label: '个案管理' },
  { path: '/psychology', label: '社会测评' },
  { path: '/hospital', label: '医院心测' },
  { path: '/mall', label: '线上商城' },
  { path: '/pc', label: '官网后台' },
  { path: '/scale', label: '量表管理' },
];

// {
//   path: '/tools',
//   label: '站内工具',
//   children: [
//     { path: '/tools/colors', label: '中国颜色' },
//     { path: '/tools/web', label: '技术网站' },
//     { path: '/tools/canlendar', label: '万年历' },
//   ],
// },
// { path: '/datas', label: '数据页面' },

interface AsideMenu {
  [key: string]: MenuItem[];
}

/**
 * 侧边栏菜单项
 * 注意：菜单项的 key 需要和 headerMenu 的菜单项(/后面的)一一对应
 */
export const asideMenu: AsideMenu = {
  authority,
  scale,
  individual,
  psychology,
  hospital,
  mall,
  pc,
};
